<!DOCTYPE html>
<html class="x-admin-sm">

	<head>
		<meta charset="UTF-8">
		<title>登录日志管理</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<link href="css/bootstrap-theme.min.css" rel="stylesheet">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" href="./css/font.css">
		<link rel="stylesheet" href="./css/xadmin.css">
		<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
		<script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="./js/xadmin.js"></script>
		<script type="text/javascript" src="./js/cookie.js"></script>

		<script src="js/jquery-3.4.1.js" type="text/javascript" charset="utf-8"></script>
		<script src="command/Bootstrap/bootstrap-3.3.0/js/bootstrap.min.js"></script>
		<script src="command/bower_components/bootbox.min.js"></script>
		<script src="command/bower_components/bootstrap-select/js/bootstrap-select.js"></script>
		<script src="command/bower_components/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script>
		<script src="command/bower_components/bootstrap-table/dist/bootstrap-table.min.js"></script>
		<script src="command/bower_components/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js"></script>
		<script src="command/bower_components/moment/min/moment-with-locales.min.js"></script>
		<script type="application/javascript">
			$(function() {
				/* 新增按钮事件 */
				$("#btnNew").click(function() {
					$("#divData-3").modal();
				});
				$("#btncx").click(function() {
					$("#divData-5").modal();
				});
			});
		</script>
		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	</head>

	<body>

		<!-- 新增模态框处理 -->
		<div class="modal fade" id="divData-3" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
			<div class="modal-dialog">
				<div class="modal-content">
					<!-- 模态标题 -->
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
						<h4 class="modal-title" id="">详细信息</h4>
					</div>
					<!-- 主体表单 -->
					<div class="modal-body form-inline">
						<div class="form-group">
							<label class="control-label" for=""> ID </label>
							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
						</div>
					</div>
					<div class="modal-body form-inline">
						<div class="form-group">
							<label class="control-label" for="">登录名</label>
							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
						</div>
					</div>
					<div class="modal-body form-inline">
						<div class="form-group">
							<label class="control-label" for="">职 务</label>
							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
						</div>
					</div>
					<div class="modal-body form-inline">
						<div class="form-group">
							<label class="control-label" for="">邮 箱</label>
							<input type="text" id="ID" name="DataID" maxlength="20" class="form-control">
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" id="btnsave" class="btn btn-info">保存</button>
					</div>
				</div>
			</div>
		</div>
		</div>
		

		<!-- 查询模态框处理 -->
		<div class="modal fade" id="divData-5" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
			<div class="modal-dialog">
				<div class="modal-content">
					<!-- 模态标题 -->
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
						<h4 class="modal-title" id="">详细信息</h4>
					</div>
					<!-- 主体表单 -->
					<div class="modal-body form-inline">
						<div class="form-group">
							<label class="control-label" for=""> ID </label>
							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
						</div>
					</div>
					<div class="modal-body form-inline">
						<div class="form-group">
							<label class="control-label" for="">登录名</label>
							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" id="btnsave" class="btn btn-info">查询</button>
					</div>
				</div>
			</div>
		</div>
		</div>

		<div class="x-nav">
			<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);"
			 title="刷新">
				<i class="layui-icon" style="line-height:30px">ဂ</i></a>
		</div>
		<div class="x-body">
			<xblock>
				<button class="layui-btn" id="btnNew" type="button">新增</button>
				<button class="layui-btn  " id="btncx" type="button">查询</button>
				<span class="x-right" style="line-height:40px">共有数据：32 条</span>
			</xblock>
			<table class="layui-table">
				<thead>
					<tr>
						<th>ID</th>
						<th>登录名</th>
						<th>邮箱</th>
						<th>职务</th>
						<th>登陆时间</th>
						<th>退出时间</th>
						<th>删除</th>
				</thead>
				<tbody>
					<tr>
						<td>1753</td>
						<td>翟洪亮</td>
						<td>113664000@qq.com</td>
						<td>总经理</td>
						<td>2019-07-13&nbsp;13:14</td>
						<td>2019-07-13&nbsp;13:48</td>
						<td class="td-manage">
							<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
								<i class="layui-icon">&#xe640;</i>
							</a>
						</td>
					</tr>
					<tr>
						<td>3902</td>
						<td>王丽菊</td>
						<td>1134212311@qq.com</td>
						<td>副总经理</td>
						<td>2019-07-14&nbsp;09:34</td>
						<td>2019-07-13&nbsp;10:48</td>
						<td class="td-manage">
							<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
								<i class="layui-icon">&#xe640;</i>
							</a>
						</td>
					</tr>
					<tr>
						<td>1753</td>
						<td>康世民</td>
						<td>113664000@qq.com</td>
						<td>总工程师</td>
						<td>2019-07-14&nbsp;17:14</td>
						<td>2019-07-13&nbsp;19:36</td>
						<td class="td-manage">
							<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
								<i class="layui-icon">&#xe640;</i>
							</a>
						</td>
					</tr>
					<tr>
						<td>1783</td>
						<td>李刚成</td>
						<td>734262821@qq.com</td>
						<td>技术总监</td>
						<td>2019-07-13&nbsp;13:45</td>
						<td>2019-07-13&nbsp;15:09</td>
						<td class="td-manage">
							<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
								<i class="layui-icon">&#xe640;</i>
							</a>
						</td>
					</tr>
				</tbody>
			</table>
			<div class="page">
				<div>
					<a class="prev" href="">&lt;&lt;</a>
					<a class="num" href="">1</a>
					<span class="current">2</span>
					<a class="num" href="">3</a>
					<a class="num" href="">35</a>
					<a class="next" href="">&gt;&gt;</a>
				</div>
			</div>

		</div>
		<script>
			layui.use('laydate', function() {
				var laydate = layui.laydate;

				//执行一个laydate实例
				laydate.render({
					elem: '#start' //指定元素
				});

				//执行一个laydate实例
				laydate.render({
					elem: '#end' //指定元素
				});
			});

			/*用户-删除*/
			function member_del(obj, id) {
				layer.confirm('确认要删除吗？', function(index) {
					//发异步删除数据
					$(obj).parents("tr").remove();
					layer.msg('已删除!', {
						icon: 1,
						time: 1000
					});
				});
			}



			function delAll(argument) {

				var data = tableCheck.getData();

				layer.confirm('确认要删除吗？' + data, function(index) {
					//捉到所有被选中的，发异步进行删除
					layer.msg('删除成功', {
						icon: 1
					});
					$(".layui-form-checked").not('.header').parents('tr').remove();
				});
			}
		</script>
		<script>
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();
		</script>
	</body>

</html>
